﻿using EFCore.Dbfirst.Models;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace MSACommerce.Interface
{
    public interface IUserService : IBaseService

    {
        /// <summary>
        /// 获取账号
        /// </summary>
        /// <param name="account"></param>
        /// <returns></returns>
        Users GetAccountMsg(string account);

        /// <summary>
        /// 更新账号最后一次登入时间
        /// </summary>
        /// <param name="account"></param>
        /// <returns></returns>
        void UpdateLoginTime(DateTime time, int id);

        /// <summary>
        ///添加
        /// </summary>
        /// <param name="account"></param>
        /// <returns></returns>
        void AddUser(Users account);
    }
}